package org.jeecg.modules.farming.news.service.impl;

import org.jeecg.modules.farming.news.entity.NewsCommentPraise;
import org.jeecg.modules.farming.news.entity.NewsPraise;
import org.jeecg.modules.farming.news.mapper.NewsCommentPraiseMapper;
import org.jeecg.modules.farming.news.mapper.NewsPraiseMapper;
import org.jeecg.modules.farming.news.service.INewsPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 新闻点赞用户表
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Service
public class NewsPraiseServiceImpl extends ServiceImpl<NewsPraiseMapper, NewsPraise> implements INewsPraiseService {
    @Autowired
    private NewsPraiseMapper newsPraiseMapper;
    @Override
    public NewsPraise getOneByOpenIdAndCommentId(String openId, String id) {
        return newsPraiseMapper.getOneByOpenIdAndCommentId(openId,id);
    }
}
